package com.bytedance.common.plugin.interfaces.pushmanager;

import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.bytedance.common.plugin.faces.LiteProxy;

public class PushLifeCycleListenerProxy implements IPushLifeCycleListener {
    private static final String TAG = "PushLifeCycleListenerPr";
    private static PushLifeCycleListenerProxy sPushLifeCycleListener;

    private PushLifeCycleListenerProxy() {

    }

    public static PushLifeCycleListenerProxy getInstance() {
        PushLifeCycleListenerProxy v0_1;
        Class v1 = PushLifeCycleListenerProxy.class;
        synchronized (v1){
            if(PushLifeCycleListenerProxy.sPushLifeCycleListener == null) {
                PushLifeCycleListenerProxy.sPushLifeCycleListener = new PushLifeCycleListenerProxy();
            }

            v0_1 = PushLifeCycleListenerProxy.sPushLifeCycleListener;
        }
        return v0_1;
    }

    public void onNotifyDestroy() {
        Log.d("PushLifeCycleListenerPr", "onNotifyDestroy() called");
        LiteProxy.inst().onNotifyDestroy();
    }

    public void onNotifyServiceCreate(Context arg4) {
        Log.d("PushLifeCycleListenerPr", "onNotifyServiceCreate() called with: context = [" + arg4 + "]");
        LiteProxy.inst().onNotifyServiceCreate(arg4);
    }

    public void onNotifyServiceStart(Intent arg4) {
        Log.d("PushLifeCycleListenerPr", "onNotifyServiceStart() called with: intent = [" + arg4 + "]");
        LiteProxy.inst().onNotifyServiceStart(arg4);
    }
}

